import CommonApi from '@/api/CommonApi'
import request from '@/utils/request'

class ContractMng extends CommonApi {
  doChangeCharger(data) {
    return request({
      url: this.prefixurl + '/doChangeCharger',
      method: 'post',
      data
    })
  }
  getContractDetailData(mainId, replaceFlag, replaceDetailLotFlag) {
    return request({
      url: this.prefixurl + '/getContractDetailData',
      method: 'get',
      params: {
        mainId,
        replaceFlag,
        replaceDetailLotFlag
      }
    })
  }
  getMemberDetailData(mainId, replaceFlag, replaceDetailLotFlag) {
    return request({
      url: this.prefixurl + '/getMemberDetailData',
      method: 'get',
      params: {
        mainId,
        replaceFlag,
        replaceDetailLotFlag
      }
    })
  }
  findCreateContractNum() {
    return request({
      url: this.prefixurl + '/findCreateContractNum',
      method: 'get'
    })
  }
}

export default new ContractMng('crm-service/api/contractMng')
